/**
 * @Author 安广伟
 * @Date 2024/7/16 14:01
 * @LastEditTime 2024-07-16 14:01:07
 * @Version 1.0
 * @Description:
 */

package com.example.demo.rabbitmq.customer;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.nio.charset.StandardCharsets;

@Component
//@RabbitListener(queues = "TestDirectQueue")
public class DirectCustomerNew {

//    @RabbitHandler
//    public void process(String testMessage){
////        long deliveryTag = testMessage.getMessageProperties().getDeliveryTag();
////        String s = new String(testMessage.getBody(), StandardCharsets.UTF_8);
////        System.out.println("第一个，接收到的消息是：==========" + testMessage);
//    }
}
